<?php
class Application_Model_Resource_Account_Table extends Zend_Db_Table 
{
    public $_name = 'account';
    public $_primary = 'id';
    public $_rowClass = 'Application_Model_Resource_Account_Row';
    
    public function findByUser($user_id) 
    {
        $select = $this->select();
        $select->where('user_id = ?', $user_id);
        return $this->fetchAll($select);
    }
}
?>